define({ "api": [
  {
    "type": "get",
    "url": "/api/cart",
    "title": "购物车数据接口",
    "description": "<p>购物车数据</p>",
    "name": "_api_cart",
    "group": "cart",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "usersid",
            "description": "<p>用户id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": ""
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  code: '10031',\n  message: '购物车的数据'\n  data:{}\n    }\n{\n     code:'10030',\n     message:\"购物车空空如吔\"\n         }\n    {\n     code:'10032',\n     message:\"token值无效\"\n         }",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:2100/api/cart"
      }
    ],
    "version": "1.0.0",
    "filename": "api/cart.js",
    "groupTitle": "cart"
  },
  {
    "type": "post",
    "url": "/api/cart/add",
    "title": "加入购物车",
    "description": "<p>加入购物车</p>",
    "name": "_api_cart_add",
    "group": "cart",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "usersid",
            "description": "<p>用户id</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "kindid",
            "description": "<p>产品id</p>"
          },
          {
            "group": "Parameter",
            "type": "number",
            "optional": false,
            "field": "num",
            "description": "<p>加入购物车的数量</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": ""
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  code: '10088',\n  message: '加入购物车成功'\n     }\n{\n     code:'10089',\n     message:\"token值失效\"\n         }",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:3000/api/cart/add"
      }
    ],
    "version": "1.0.0",
    "filename": "api/cart.js",
    "groupTitle": "cart"
  },
  {
    "type": "get",
    "url": "/api/cart/datale",
    "title": "删除产品数量接口",
    "description": "<p>删除产品数量</p>",
    "name": "_api_cart_datale",
    "group": "cart",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "cartid",
            "description": "<p>购物车id</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": ""
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  code: '10092',\n  message: '删除成功'\n     }\n{\n     code:'10093',\n     message:\"token值失效\"\n         }",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:2100/api/cart/datale"
      }
    ],
    "version": "1.0.0",
    "filename": "api/cart.js",
    "groupTitle": "cart"
  },
  {
    "type": "post",
    "url": "/api/cart/update",
    "title": "修改产品数量接口",
    "description": "<p>修改产品数量</p>",
    "name": "_api_cart_update",
    "group": "cart",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "cartid",
            "description": "<p>购物车id</p>"
          },
          {
            "group": "Parameter",
            "type": "number",
            "optional": false,
            "field": "num",
            "description": "<p>修改产品的数量</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "json",
            "optional": false,
            "field": "data",
            "description": ""
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  code: '10090',\n  message: '加入购物车成功'\n     }\n{\n     code:'10091',\n     message:\"token值失效\"\n         }",
          "type": "json"
        }
      ]
    },
    "sampleRequest": [
      {
        "url": "http://localhost:2100/api/cart/update"
      }
    ],
    "version": "1.0.0",
    "filename": "api/cart.js",
    "groupTitle": "cart"
  }
] });
